package com.cwl.base.day03;

/**
 * @program: java_base
 * @description: 测试This关键字
 * @author: ChenWenLong
 * @create: 2019-11-07 09:33
 **/
public class TestThis {

    int a, b, c;

    TestThis(int a, int b) {
        this.a = a;
        this.b = b;
    }

    TestThis(int a, int b, int c) {
        this(a,b);
        this.c = c;
    }

    void sing() {
    }

    void eat() {
        this.sing(); // 调用本类中的sing();
        System.out.println("你妈妈喊你回家吃饭！");
    }


    public static void main(String[] args) {
        TestThis hi = new TestThis(2, 3);
        hi.eat();

    }
}
